<?php

/**
 * Description of MoneyFactoryclass
 *
 * @author perrine
 */
require_once("Money.class.php");
class MoneyFactory {
    
    private static $_defaultCurrencies;

    private $_currencies = array("EUR", "USD", "CHF");

    private static $_defaultInstance;

    public static function getDefaultFactory() {
    	if (!isset($_defaultInstance))
    		MoneyFactory::$_defaultInstance=new MoneyFactory();
    
    	return MoneyFactory::$_defaultInstance;
    }

    public function createMoney($v,$curr) {
        return new Money($v,$curr);
    }


}
?>
